package cn.edu.jsu.official.pojo.dto;

import cn.edu.jsu.official.serializer.DateSerializer;
import cn.edu.jsu.official.serializer.ObjectIdSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * @author Mo
 * @createTime 2022/3/1 17:02
 * @description
 */
@Data
@Document(collection = "project_in_progress")
public class ProjectInProgressInfo {
    @Id
    @ApiModelProperty("主键Id")
    private String projectInProgressInfoId;
    @ApiModelProperty("项目名称")
    private String projectName;
    @ApiModelProperty("项目简介")
    private String projectIntroduction;
    @ApiModelProperty("项目开始日期")
    @JSONField(serializeUsing = DateSerializer.class, deserializeUsing = DateSerializer.class)
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date projectStartDate;
    @ApiModelProperty("项目参与人")
    private List<String> projectParticipants;
    @ApiModelProperty("封面Id")
    @JSONField(serializeUsing = ObjectIdSerializer.class, deserializeUsing = ObjectIdSerializer.class)
    private ObjectId frontCoverId;
}
